Work around a pkg-config bug
authorMatthias Clasen <mclasen@redhat.com>
Sat, 18 Oct 2014 16:40:18 +0000 (12:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 18 Oct 2014 16:51:30 +0000 (12:51 -0400)
It doesn't report -I${prefix}/include in cflags, even if .pc
files explicitly put it there. This was breaking the build
outside of a jhbuild shell when libepoxy is in the jhbuild tree
but not in /usr.

configure.ac

index 62c301feaedc682e8a441fac67c306674084f975..3ca894275c65cca9f399bddc9827e33bf5105294 100644 (file)
@@ -350,7 +350,8 @@ backend_immodules=
 have_gio_unix=no
 GDK_BACKENDS=
 GDK_EXTRA_LIBS=
-GDK_EXTRA_CFLAGS=
+# expoxy.pc has Cflags: -I${includedir}, but pkg-config swallows that :-(
+GDK_EXTRA_CFLAGS="-I${prefix}/include"
 GDK_WINDOWING=
 PANGO_PACKAGES="pango pangocairo"